projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3561b67
)
(x_get_glyph_overhangs): Fix calculation of right
author
Kenichi Handa
<handa@m17n.org>
Thu, 11 Jun 2009 02:32:30 +0000
(
02:32
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Thu, 11 Jun 2009 02:32:30 +0000
(
02:32
+0000)
overhang for the automatic composition case.
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index 224dd4853b8e4806ca80651dce8d8a51efc86d15..eff922e742263312ff76d43ae0f663bb4e0460dc 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-19926,7
+19926,7
@@
x_get_glyph_overhangs (glyph, f, left, right)
composition_gstring_width (gstring, glyph->u.cmp.from,
glyph->u.cmp.to + 1, &metrics);
if (metrics.rbearing > metrics.width)
- *right = metrics.rbearing;
+ *right = metrics.rbearing
- metrics.width
;
if (metrics.lbearing < 0)
*left = - metrics.lbearing;
}